From 91baae515e845630309aa8d72bf1cf4a2eaa120c Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sun, 2 Aug 2009 12:29:25 +0100 Subject: [PATCH] Make ACPI Cx keyhandler always print something ...so that from a serial log you can tell the difference between not pressing the key and not having anything interestying to print. Signed-off-by: Tim Deegan --- xen/arch/x86/acpi/cpu_idle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/acpi/cpu_idle.c b/xen/arch/x86/acpi/cpu_idle.c index e6d866fb54..d16bdf1daf 100644 --- a/xen/arch/x86/acpi/cpu_idle.c +++ b/xen/arch/x86/acpi/cpu_idle.c @@ -102,6 +102,7 @@ static void dump_cx(unsigned char key) { unsigned int cpu; + printk("'%c' pressed -> printing ACPI Cx structures\n", key); for_each_online_cpu ( cpu ) if (processor_powers[cpu]) print_acpi_power(cpu, processor_powers[cpu]); @@ -110,7 +111,7 @@ static void dump_cx(unsigned char key) static int __init cpu_idle_key_init(void) { register_keyhandler( - 'c', dump_cx, "dump cx structures"); + 'c', dump_cx, "dump ACPI Cx structures"); return 0; } __initcall(cpu_idle_key_init); -- 2.30.2